package com.zxx.pattern.buildPattern.build3;

/**
 * @author zxx on 2020/12/11
 */
public class Test3 {

    public static void main(String[] args) {
        MealBuilder builder = new MealBuilder();
        Meal vegMeal = builder.prepareVegMeal();
        System.out.println("Veg Meal");
        vegMeal.showItems();
        System.out.println("Total Price:" + vegMeal.getCost());

        Meal nonMeal = builder.prepareNonVegMeal();
        System.out.println("\nNon Meal");
        nonMeal.showItems();
        System.out.println("Total Price:" + nonMeal.getCost());

    }

}
